﻿{% extends "other/head.html" %}
{% block head %}



        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox ">
                        <div class="ibox-title">
                            <h2>用户列表 </h2>
                            <div class="ibox-tools">
                                <a class="collapse-link">
                                    <i class="fa fa-chevron-up"></i>
                                </a>
                                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                    <i class="fa fa-wrench"></i>
                                </a>
                                <ul class="dropdown-menu dropdown-user">
                                    <li><a href="#" class="dropdown-item">选项 1</a>
                                    </li>
                                    <li><a href="#" class="dropdown-item">选项 2</a>
                                    </li>
                                </ul>
                                <a class="close-link">
                                    <i class="fa fa-times"></i>
                                </a>
                            </div>
                        </div>
                        <div class="ibox-content">
                            <div class="table-responsive">
                                <table class="table table-striped" style="font-size: 13px">
                                    <thead>
                                    <tr>

                                        <th>用户ID</th>
                                        <th>登录名 </th>
                                        <th>用户名</th>
                                        <th>用户状态</th>
                                        <th>授权项目</th>
                                        <td>是否允许查看所有列表</td>
                                        <th>是否禁用</th>
                                        <th>管理</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    {% for i in user_list %}
                                    <tr>
                                        <td>{{ i.user_id }}</td>
                                        <td>{{ i.user_name}}</td>
                                        <td>{{ i.user_alias}}</td>
                                        {% if i.user_status == "2" %}
                                        <td>普通用</td>
                                        {% else %}
                                            <td>管理员</td>
                                        {% endif %}
                                        <td>{{ i.user_project_dir }}</td>
                                        {% if i.user_show == "2" %}
                                        <td>查看所有文件列表</td>
                                        {% elif i.user_show == "0" %}
                                         <td>只查询自己的</td>
                                         {% elif i.user_show == "1" %}
                                         <td>查看归属项目所有文件</td>
                                        {% endif %}
                                    {% if i.user_active == "1" %}
                                        <td>启动中</td>
                                    {% else %}
                                        <td>禁用中</td>
                                    {% endif %}
                                        <td><a href="/user/userupdate/?id={{ i.user_id }}" class="btn btn-white btn-sm"><i class="fa fa-pencil"></i> 编辑</a>
                                            <a href="/user/userdel/?id={{ i.user_id }}" class="btn btn-white btn-sm"> <i class="fa fa-pencil"></i>删除</a> </td>
                                    </tr>
                                    {% endfor %}

                                    </tbody>
                                </table>
                            </div>

                        </div>
                    </div>
                </div>

            </div>
        </div>
        <div class="footer">
            <div class="float-right">
                 <strong>2.9.2 inspinia</strong>
            </div>
            <div>
                <strong>Copyright</strong> inspinia 2.9.2 &copy; 2014-2018
            </div>
        </div>

        </div>
        </div>





</body>

</html>
{% endblock %}